import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner num = new Scanner(System.in);
        int a = num.nextInt();
        int b = num.nextInt();
        int c = num.nextInt();
        double p = (a+b+c)/2.0;

        if(a+b>c && a+c>b && b+c>a){
            double perimeter = (a+b+c);
            double area =Math.sqrt (p*(p-a)*(p-b)*(p-c));
        }
        System.out.println(perimeter =%.2d+" "+area=%.2d);
    }
}
